package com.changan.response;

import lombok.Data;

@Data
public class CommonReturnType {

    private String status;

    private Object data;

    //这边是成功的
    public static CommonReturnType create(Object result){
        return CommonReturnType.create("success",result);
    }

    //这边是成功的
    public static CommonReturnType create(String status,Object result){
        CommonReturnType commonReturnType = new CommonReturnType();
        commonReturnType.setStatus(status);
        commonReturnType.setData(result);
        return commonReturnType;
    }
}
